<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "imitation".
 *
 * @property integer $id
 * @property string $image_id
 * @property integer $user_id
 * @property integer $create_time
 * @property string $address
 * @property string $info
 * @property integer $supportnum
 * @property string $url
 * @property string $content
 */
class Imitation extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'imitation';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['image_id', 'user_id','content'], 'required'],
            [['user_id', 'create_time', 'supportnum'], 'integer'],
            [['image_id'], 'string', 'max' => 30],
            [['address', 'info'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'image_id' => 'Image ID',
            'user_id' => 'User ID',
            'create_time' => 'Create Time',
            'address' => 'Address',
            'info' => 'Info',
            'supportnum' => 'Supportnum',
            'url' => 'Url',
            'contnet' => '内容'
        ];
    }
}
